#!/usr/bin/python
# -*- coding: utf-8 -*-
#Author: Onur ASLAN
#Mail : hata.pindir@gmail.com 

from PyQt4 import QtCore
from PyQt4 import QtGui
from Ui_MainWindow import Ui_MainWindow

def effectSettings(self):
	index = self.tabWidget.currentIndex()
	self.labelTabWidgetCurrentIndex.setText(str(index))
	self.labelSettingsAddress.setText(unicode(self.ayar_yol.text()))
	self.tabWidget.setCurrentIndex(0)
	self.widget_7.show()
	self.animate = QtCore.QPropertyAnimation (self.widget_7, "geometry")
	self.animate.setDuration (400)
	self.animate.setStartValue(QtCore.QRect (104, -90, 561, 245))
	self.animate.setEndValue(QtCore.QRect (104, -5, 561, 245))
	self.animate.start() 
		
def effectSettingsClose(self):
	self.animate = QtCore.QPropertyAnimation (self.widget_7, "geometry")
	self.animate.setDuration (200)
	self.animate.setStartValue(QtCore.QRect (104, -5, 561, 245))
	self.animate.setEndValue(QtCore.QRect (104, -250, 561, 245))
	self.animate.start()
	index2 = self.labelTabWidgetCurrentIndex.text()
	self.tabWidget.setCurrentIndex(int(index2))
	
def effectWatch(self):
	self.animate = QtCore.QPropertyAnimation (self.widget_6, "geometry")
	self.animate.setDuration (300)
	self.animate.setStartValue(QtCore.QRect (0, 460, 775, 382))
	self.animate.setEndValue(QtCore.QRect (0, -1, 775, 382))
	self.animate.start() 
		
def effectWatchClose(self):
	self.animate = QtCore.QPropertyAnimation (self.widget_6, "geometry")
	self.animate.setDuration (700)
	self.animate.setStartValue(QtCore.QRect (0, -1, 775, 382))
	self.animate.setEndValue(QtCore.QRect (0, 460, 775, 382))
	self.animate.start()

def effectVersion(self):
	self.animate = QtCore.QPropertyAnimation (self.frame_3, "geometry")
	self.animate.setDuration (500)
	self.animate.setStartValue(QtCore.QRect (0, -1, 771, 391))
	self.animate.setEndValue(QtCore.QRect (0, 400, 775, 382))
	self.animate.start()	
	
def effectAutoInstall(self):	
	self.animate = QtCore.QPropertyAnimation (self.widget_8, "geometry")
	self.animate.setDuration (700)
	self.animate.setStartValue(QtCore.QRect (220, 80, 371, 181))
	self.animate.setEndValue(QtCore.QRect (810, 80, 371, 181))
	self.animate.start() 	
